package mySeHomework.homework1;

import static org.junit.Assert.assertEquals;

import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;

import cn.edu.ctgu.junitTest.MyLinkedList;

public class MyLinkedListtest {

	@Test
    @DisplayName("路径测试1")
    void test1() {
        MyLinkedList<String> list = new MyLinkedList<>();
        list.add(null);
        System.out.print(list);
        assertEquals(true, list.remove(null));
    }
    
	
	@Test
    @DisplayName("路径测试2")
    void test2() {
        MyLinkedList<String> list = new MyLinkedList<>();
        list.add("test");
        System.out.print(list);
        assertEquals(false, list.remove(null));
    }
    
	
	@Test
    @DisplayName("路径测试3")
    void test3() {
        MyLinkedList<String> list = new MyLinkedList<>();
        list.add("test");
        System.out.print(list);
        assertEquals(true, list.remove("test"));
    }
    
	
	@Test
    @DisplayName("路径测试4")
    void test4() {
        MyLinkedList<String> list = new MyLinkedList<>();
        list.add(null);
        System.out.print(list);
        assertEquals(false, list.remove("test"));
    }
	
	
}
